<?php
class Core_Data_Mailsender implements Core_Data_Mainable {
	
	/**
	 * send email
	 * @param array $variables
	 * @see Core_Data_Mainable::main()
	 */
	public function main(array $variables = null){
		$headers = "From: ".$variables['current_email']."\r\n";
		$headers .= "Content-type: text/html\r\n";
		@mail($variables['current_email'], $variables['user_subject'], $variables['user_message'], $headers);
	}
}